//
//  HomeAttentionUserMomentsList.swift
//  HomeAttentionUserMomentsList
//
//  Created by Ben on 2021/8/31.
//

import SwiftUI

struct HomeAttentionUserMomentsList: View {
    
    @EnvironmentObject var homeVM: HomeViewModel
    
    var body: some View {
        List {
            
            // 先完成关注的人（最常访问）
            VStack(alignment: .leading) {
                Text("常访问的人")
                    .font(.system(size: 14))
                    .foregroundColor(Color.black.opacity(0.5))
                
                HStack {
                    ForEach(0..<5) { _ in
                        
                        Color.random()
                            .frame(height: 100)
                    }
                }
            }
            .listRowInsets(.zero)
            .listRowSeparator(.hidden)
        }
        .listStyle(.plain)
        
    }
}

struct HomeAttentionUserMomentsList_Previews: PreviewProvider {
    static var previews: some View {
        HomeAttentionUserMomentsList()
    }
}
